<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/public.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/ico-ie7.css">
	<![endif]-->
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/public.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/slide.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/slide.js"></script>
	<title>微电影 - 首页</title>
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?></head>
<body>
	<!-- 顶部开始 -->
	<div class="bgblack">
		<div class="w1200 auto p5 bgblack">
			<a class="white-2 af mr20" href="http://localhost/obj/movier">老地方电影</a>
		</div>
	</div>
	<!-- 顶部结束 -->
	<!-- menu开始 -->
	<div class="h65 bgwhite rel zix2 fixMenu">
		<div class="w1200 auto h65 rel fix">
			<div class="logo t0 l0 w100 h65 l mr30"><img src="http://localhost/obj/movier/Template/default/img/logo.png" alt="" /></div>
			<ul class="l fm rel menu">
					<li class="l lh60 mr30" act="1"><a class="w50 tc dib f16 black" href="http://localhost/obj/movier">首页</a></li>
						<?php
		$re = M('category')->limit(5)->where('pid=0')->all();
		foreach ($re as $c) :
			if(0==$c['cid']) $c['act']='act="1"';
			$c['url']=U($c['url'],array('cid'=>$c['cid'],'nav'=>$c['cid']));
		?>
					<li class="l lh60 mr30" <?php echo $c['act'];?>><a class="w50 tc dib f16 black" href="<?php echo $c['url'];?>"><?php echo $c['cname'];?></a></li>
				<?php endforeach ;?>
				<span class="movebg dib w50 bgblue h4 abs b0 l0"></span>
			</ul>
			<div class="r abs t20 r10">
				<form action="<?php echo U('search/index');?>" method="get" class="dib ">
					<div class="dib bdc w200 rel">
						<input class="p5 pct80 bd0" type="text" name="keys" />
						<input type="submit" class="hand gray abs t3 r5 bd0 search" value="&emsp;&ensp;" />
					</div>
				</form>
				<p class="p5 dib fm ml10">
					<?php if($_SESSION['user']['uid']){?>
						<span class="f14 black mr10">欢迎您： <a class="gray a f14" href="<?php echo U('User/index');?>"><i class="icon-user mr3 gray"></i><?php echo $_SESSION['user']['email'];?> [ <?php echo $_SESSION['user']['nickname'];?> ]</a></span>
						<a class="f14 black" href="<?php echo U('User/out');?>"><i class="icon-signout mr3 gray"></i>退出</a>
						<?php if($_SESSION['user']['level'] > 0){?>
							| <a class="f14 blue5 tsblack" href="http://localhost/obj/movier?a=admin">后台管理</a>
							<?php if($_SESSION['user']['level'] == 9){?><span class="p2 pl5 pr5 rad50 white bgmaroon">超</span><?php }?>
						<?php }?>
					<?php  }else{ ?>
						<a class="f14 black mr10" href="<?php echo U('User/login');?>">登录</a>
						<a class="f14 black" href="<?php echo U('User/reg');?>">注册</a>
					<?php }?>
					
				</p>
			</div>
		</div>
	</div>
	<!-- menu结束 -->



	<!-- 内容开始 -->
	<div class="w1180 auto mt20 fix">
		<div class="mb30 f48 bgblue2 rad5 w500 auto h300 white tc">
			<img src="http://localhost/obj/movier/Template/default/img/logoBig.png" alt="" class="h300" />
		</div>
		<div class="w500 mr30 l tc fm fix mb30">
			<p class="mt30"><a href="" class="f18 rad4 a dib p10 bgred1 white pct50">新浪微博登陆</a></p>
			<p class="mt30"><a href="" class="f18 rad4 a dib p10 bgblue1 white pct50">QQ账号登陆</a></p>
			<p class="mt30"><a href="" class="f18 rad4 a dib p10 bgteal-2 white pct50">人人账号登陆</a></p>
		</div>
		<div class="w600  l fm mt30">
			<form action="" method="post">
				<p class="p10 fix">
					<span class="w100 dib mr15 tr f14">常用邮箱</span>
					<input name="email" type="text" class="pct50 p5 f14" />
				</p>
				<p class="p10 fix mt20">
					<span class="w100 dib mr15 tr f14">密码</span>
					<input name="pwd" type="password" class="pct50 p5 f14" />
				</p>
				<p class="p10 fix mt20">
					<span class="w100 dib mr15 tr f14"></span>
					<label for="au">
						<input name="auto" type="checkbox" id="au" class="" checked="" /> 下次自动登陆
					</label>
					<!-- <a href="" class="ml30 pl30">忘记密码了</a> -->
				</p>
				<p class="p10 fix f18 mt20">
					<span class="w100 dib mr15 tr f14"></span>
					<input type="submit" class="btn bgblue pct50" value="登 陆" />
				</p>
				<p class="p10 fix mt20">
					<span class="w100 dib mr30 tr f14"></span>
					<span class=" dib tr f14">
						还没有账号？ <a href="<?php echo U('User/reg');?>">立即注册</a>
					</span>
					
				</p>
			</form>
		</div>
	</div>
	<!-- 内容结束 -->













<!-- 底部 -->
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?>	<!-- 底部开始 -->
	<div class="bgblack h100 white-2 mt20">
		<!-- <div class="fs tc pt10">
			<a href="" class="dib p5 white-2">合作推广</a>
			<a href="" class="dib p5 white-2">联系我们</a>
			<a href="" class="dib p5 white-2">加入我们</a>
		</div> -->
		<div class="pt20">
			<p class="tc p5"><?php echo $const['bottom1'];?></p>
			<p class="tc p5"><?php echo $const['bottom2'];?></p>
		</div>
	</div>
	<!-- 底部结束 -->
</body>
</html>
<!-- 底部结束 -->